package com.db.transaction.manager.Impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.db.transaction.manager.entity.Agent2;
import com.db.transaction.manager.mapper.mapper2.Agent2Mapper;
import com.db.transaction.manager.service.Agent2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhanggq
 * @since 2019-10-20
 */
@Service
public class Agent2ServiceImpl extends ServiceImpl<Agent2Mapper, Agent2> implements Agent2Service {

    @Autowired
    private Agent2Mapper agent2Mapper;

    @Override
    public void add(Agent2 agent) {
        agent2Mapper.add(agent);
    }

    @Override
    public Agent2 query() {
        return agent2Mapper.query();
    }
}
